<template>
  <div>
    <div class="hot-attraction">
      <div class="hot-hd">
        <span><i class="iconfont icon_hot">&#xe605;</i>本周热门榜单</span>
        <span>全部榜单<i class="iconfont icon_more">&#xe603;</i></span>
      </div>
      <ul class="hot-items" style="margin-top:10px">
        <li class="item" v-for="item in attractions" :key="item.id">
          <img :src="item.imgUrl" />
          <p class="hot-more">{{ item.name }}</p>
          <p class="price">
            <span>{{ item.price }}</span
            >起
          </p>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
import '../../assets/css/common.css'
export default {
  props: ['attractions'],
  data() {
    return {}
  }
}
</script>
<style lang="less" scoped>
.hot-attraction {
  background-color: white;
  padding-top: 0.3rem;
}
.hot-hd {
  height: 0.5rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  span {
    font-size: 0.38rem;
    color: #616161;
    &:nth-child(1) {
      font-weight: 650;
    }
  }
  .icon_hot {
    color: red;
    font-size: 0.48rem;
    padding-left: 0.1rem;
  }
  .icon_more {
    padding-right: 0.2rem;
    font-size: 0.5rem;
    padding-top: 0.06rem;
  }
}
.item {
  display: inline-block;
  width: 3rem;
  height: 4rem;
  text-align: center;
  font-size: 0.35rem;
  font-weight: 550;
  margin: 0 0.15rem;
  img {
    width: 3rem;
    height: 3rem;
  }
  .hot-more {
    margin: 0.1rem 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .price {
    span {
      color: red;
      font-size: 0.4rem;
      padding-right: 0.06rem;
    }
  }
}
.hot-items {
  overflow-x: scroll;
  white-space: nowrap;
  height: 4.5rem;
}
</style>
